<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:80:"E:\UPUPW_NP7.0\htdocs\filtrs\public/../application/supplier\view\index\main.html";i:1514125651;s:83:"E:\UPUPW_NP7.0\htdocs\filtrs\public/../application/supplier\view\public\header.html";i:1513926987;}*/ ?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Filtrs ADMIN</title>
    <link rel="stylesheet" href="<?php echo $PUBLIC_STATIC_SRC['__STATIC__']; ?>/plugins/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="<?php echo $PUBLIC_STATIC_SRC['__STATIC__']; ?>/plugins/font-awesome/css/font-awesome.min.css" media="all" />
    <link rel="stylesheet" href="<?php echo $PUBLIC_STATIC_SRC['__STATIC__']; ?>/src/css/app.css" media="all" />
    <link rel="stylesheet" href="<?php echo $PUBLIC_STATIC_SRC['__STATIC__']; ?>/src/css/themes/default.css" media="all" id="skin" kit-skin />
	<script src="<?php echo $PUBLIC_STATIC_SRC['__STATIC__']; ?>/plugins/layui/layui.js"></script>
	<script type="text/javascript" src="<?php echo $PUBLIC_STATIC_SRC['__Home_JS__']; ?>/common.js"></script>
</head>

<body>
    <fieldset class="layui-elem-field layui-field-title">
        <legend>基本档案</legend>
    </fieldset>
    <form class="layui-form" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">企业名称</label>
            <div class="layui-input-block">
                <input type="text" name="CompName" class="layui-input" lay-verify="required" placeholder="请输入企业名称" value="<?php echo $view['comp_name']; ?>" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">主体类型</label>
            <div class="layui-input-block">
                <input type="radio" name="CompType" value="1" title="生产制造商" <?php if($view['comp_type'] == '1'): ?>checked<?php endif; ?>>
				<input type="radio" name="CompType" value="2" title="品牌运营商" <?php if($view['comp_type'] == '1'): ?>checked<?php endif; ?>>
				<input type="radio" name="CompType" value="3" title="渠道经销商" <?php if($view['comp_type'] == '1'): ?>checked<?php endif; ?>>
            </div>
        </div>
		<div class="layui-form-item">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-block">
                <input type="text" name="ContactName" class="layui-input" lay-verify="required" placeholder="请输入联系人" value="<?php echo $view['contact_name']; ?>" >
            </div>
        </div>
		<div class="layui-form-item">
            <label class="layui-form-label">联系电话</label>
            <div class="layui-input-block">
               <input type="text" name="ContactMobile" class="layui-input" lay-verify="required" placeholder="请输入联系电话" value="<?php echo $view['contact_mobile']; ?>" >
            </div>
        </div>
		<div class="layui-form-item">
			<label class="layui-form-label">省/市/区</label>
			<div class="layui-input-inline">
				<select name="ProId" lay-filter="SelectPro" lay-search>
					<option value="">请选择省</option>
					<?php if(is_array($pro_list) || $pro_list instanceof \think\Collection || $pro_list instanceof \think\Paginator): $i = 0; $__LIST__ = $pro_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$p): $mod = ($i % 2 );++$i;?>
						<option value="<?php echo $p['id']; ?>"  <?php if($p['id'] == $view['pro_id']): ?>selected<?php endif; ?>><?php echo $p['name']; ?></option>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</select>
			</div>
			<div class="layui-input-inline" id="CityList">
				<select name="CityId" lay-filter="SelectCity" lay-search>
					<option value="">请选择市</option>
					<?php if(is_array($cities_list) || $cities_list instanceof \think\Collection || $cities_list instanceof \think\Paginator): $i = 0; $__LIST__ = $cities_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$c): $mod = ($i % 2 );++$i;?>
						<option value="<?php echo $c['id']; ?>"  <?php if($c['id'] == $view['city_id']): ?>selected<?php endif; ?>><?php echo $c['name']; ?></option>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</select>
			</div>
			<div class="layui-input-inline" id="DistrctList">
				<select name="DistrictId" lay-search>
					<option value="">请选择县/区</option>
					<?php if(is_array($distrinct) || $distrinct instanceof \think\Collection || $distrinct instanceof \think\Paginator): $i = 0; $__LIST__ = $distrinct;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$d): $mod = ($i % 2 );++$i;?>
						<option value="<?php echo $d['id']; ?>"  <?php if($d['id'] == $view['district_id']): ?>selected<?php endif; ?>><?php echo $d['name']; ?></option>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
            <label class="layui-form-label">详细地址</label>
            <div class="layui-input-block">
                <input type="text" name="Address" lay-verify="title" autocomplete="off" placeholder="请输入详细地址" class="layui-input" value="<?php echo $view['address']; ?>" >
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="hidden" name="supplier_id" class="" value="<?php echo $view['id']; ?>">
				<button class="layui-btn" lay-submit="" lay-filter="addSupplier">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
    <script src="<?php echo $PUBLIC_STATIC_SRC['__Home_JS__']; ?>/main.js"></script>
</body>
</html>